//
//  JTBaseNaviController.m
//  JiongTu
//
//  Created by 杨璟 on 16/4/6.
//  Copyright © 2016年 YSKJ. All rights reserved.
//

#import "JTBaseNaviController.h"

@interface JTBaseNaviController ()

@end

@implementation JTBaseNaviController

+ (JTBaseNaviController *)navigationControllerWithRootViewController:(UIViewController *)viewController {
    JTBaseNaviController *navi = [[JTBaseNaviController alloc] initWithRootViewController:viewController];
    
//    [navi.navigationBar setBackgroundImage:[UIImage imageNamed:@"导航栏背景"] forBarMetrics:UIBarMetricsDefault];
//    
//    navi.navigationBar.tintColor =[UIColor whiteColor];
//    [navi.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName,nil]];
    
    return navi;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.navigationBar setBackgroundImage:[UIImage imageNamed:@"导航栏背景"] forBarMetrics:UIBarMetricsDefault];
    
    self.navigationBar.tintColor =[UIColor whiteColor];
    [self.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName,nil]];
}

- (UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleLightContent;
}

@end
